package com.sofoscorp.android.gestcobranzamobile;

import java.text.DecimalFormat;

public class KNKK_Str {

	private String KUNNR;
	private String KKBER;
	private Double KLIMK;
	private Double SAUFT;
	private Double SKFOR;
	private Double SSOBL;
	private Double ZSAUF;
	
	public KNKK_Str(String kunnr, String kkber, Double klimk,
			        Double sauft, Double skfor, Double ssobl, Double zsauf) {

		this.KUNNR = kunnr;
		this.KKBER = kkber;
		this.KLIMK = klimk;
		this.SAUFT = sauft;
		this.SKFOR = skfor;
		this.SSOBL = ssobl;
		this.ZSAUF = zsauf;
		
	}
	
	public String getKUNNR(){
		return this.KUNNR;
	}

	public String getKKBER(){
		return this.KKBER;
	}	
	
	public Double getKLIMK(){
		return this.KLIMK;
	}	
	
	public Double getSAUFT(){
		return this.SAUFT;
	}	
	
	public Double getSKFOR(){
		return this.SKFOR;
	}		
	
	public Double getSSOBL(){
		return this.SSOBL;
	}		
	
	public Double getZSAUF(){
		return this.ZSAUF;
	}
	
	public String getKLIMK_asString(){
		return formatDecimal(this.KLIMK);
	}	
	
	public String getSAUFT_asString(){
		return formatDecimal(this.SAUFT);
	}	
	
	public String getSKFOR_asString(){
		return formatDecimal(this.SKFOR);
	}		
	
	public String getSSOBL_asString(){
		return formatDecimal(this.SSOBL);
	}		
	
	public String getZSAUF_asString(){
		return formatDecimal(this.ZSAUF);
	}	
	
	public String formatDecimal(double number) {

	    DecimalFormat nf = new DecimalFormat("###,###,###,##0.00");
	    String formatted = nf.format(number);

	    return formatted;
	}		
	
}
